package cn.rkylin.oms.common.event.message;


import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
  * 消息日志（数据将保存到MongoDB）
 */
@Document(collection = "oms_message_log")
public class MessageLog {

	/**
	 * 消息日志id
	 */
	private String id;

	/**
	 * 日志生成时间
	 */
	private Date creationTime;

	/**
	 * 发送时间
	 */
	private Date sendTime;

	/**
	 * 消息内容
	 */
	private String content;

	/**
	 * 发送结果
	 */
	private SendResult sendResult;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getCreationTime() {
		return creationTime;
	}

	public void setCreationTime(Date creationTime) {
		this.creationTime = creationTime;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public SendResult getSendResult() {
		return sendResult;
	}

	public void setSendResult(SendResult sendResult) {
		this.sendResult = sendResult;
	}
}